package com.nianfei.rabbitmq_delayqueue;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author cityre
 * @date 2019/1/8
 */
@RestController
public class TestController {
	@Autowired
	private RabbitProducer rabbitProduct;
	@GetMapping("/sendMessage")
	public void sendMessage(){
		List<Integer> list = new ArrayList<>();
//		list.add(1);
//		list.add(2);
		rabbitProduct.sendDelayMessage(list);
	}

}
